# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1243
# Description:
# Author:       yzl
# Date:         2019-02-09
#-------------------------------------------------------------------------------


import time

time1 = time.time()
time2 = time1 + 60
time3 = time1 + 60 * 60
time4 = time1 - 60 * 60 * 24

print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time1)))
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time2)))
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time3)))
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time4)))